<?php

namespace App\Modules\Apicrzs\Http\Controllers\Intake;

use App\Modules\Apicrzs\Http\Controllers\BaseApicrzsController;
use App\Modules\Apicrzs\Services\Water\DeviceMaintenanceService;
use App\Modules\Apicrzs\Services\Water\DeviceService;
use Illuminate\Http\Request;

class DeviceMaintenanceController extends BaseApicrzsController
{
    public function __construct(DeviceMaintenanceService $service)
    {
        $this->service = $service;
    }

    public function lists(Request $request)
    {
        $result = $this->service->getLists($request->all());

        return $this->sendApiSuccess($result, $this->service->getError());
    }
}
